package com.wits.platform.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 主键生成器
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name="wits_id_generator")
public class IdGenerator implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1149712939338821866L;
	
	private Long id;
	
	private String genName;
	
	private Long genValue;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="gen_name",length=255)
	public String getGenName() {
		return genName;
	}

	public void setGenName(String genName) {
		this.genName = genName;
	}

	@Column(name="gen_value")
	public Long getGenValue() {
		return genValue;
	}

	public void setGenValue(Long genValue) {
		this.genValue = genValue;
	}
	

}
